import { Device } from "@bidiao/framework";

export enum CaptchaStatus {
  /** 无状态 */
  None,
  /** 加载中 */
  Loading,
  /** 准备就绪，可以开始验证 */
  Ready,
  /** 操作激活的状态 */
  Active,
  /** 验证中 */
  Validing,
  /** 验证成功 */
  Success,
  /** 验证失败 */
  Fail,
  /** 验证完成 */
  Complete,
}
export enum CaptchaSideIcon {
  Airplane,
  Arrow,
}
export enum CaptchaMode {
  /** 嵌入式 */
  Embed = "embed",
  /** 弹出式 */
  Popup = "popup",
  /** 弹窗 */
  Model = "model",
}
export const EVENT_DOWN = Device.Mobile ? "touchstart" : "mousedown";
export const EVENT_MOVE = Device.Mobile ? "touchmove" : "mousemove";
export const EVENT_UP = Device.Mobile ? "touchend" : "mouseup";
